package com.chy.blog_server.modular.web.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chy.blog_server.modular.web.entity.BoSeeBook;
import com.chy.blog_server.modular.web.mapper.BoSeeBookMapper;
import com.chy.blog_server.modular.web.service.IBoSeeBookService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * 描述：约看书表 service业务层
 * 作者：chenhuiyan
 * 时间：2020/04/11
 */
@Service
@Transactional(readOnly = true)
public class BoSeeBookServiceImpl extends ServiceImpl<BoSeeBookMapper, BoSeeBook> implements IBoSeeBookService {

    /**
     * 查询列表
     * @param params
     * @return
     */
    public List<Map<String, Object>> list(Map<String, Object> params){
        return baseMapper.list(params);
    }

    /**
     * 查询总数
     * @param params
     * @return
     */
    public int getCount(Map<String, Object> params){
        return baseMapper.getCount(params);
    }

    /**
     * 查询详情
     * @param id
     * @return
     */
    public Map<String, Object> getInfoById(String id){
        return baseMapper.getInfoById(id);
    }

    /**
     * 查询亲蜜度
     * @return
     */
    public int getSweet(){
        return baseMapper.getSweet();
    }

}
